<?php
	//includes
	require_once 'includes.php';

	$imagePath = 'http://mdata.yandex.net/i?path=b0809001129_img_id6500216343117753901.jpg';
	$imageInfo = pathinfo($imagePath);
	for ($i = 0; $i <= 10; $i++)
	{
		$imageName = $i;
		$copyResult = copy($imagePath, $_SERVER['DOCUMENT_ROOT'].'/yandex/results/images/'.$imageName.'.'.$imageInfo['extension']);
		Utils::VarDump($copyResult);
	}
?>